(function () {
    'use strict';
    angular.module('module.business').config(configure);
    configure.$inject = ['$stateProvider'];

    function configure($stateProvider) {
        $stateProvider
            .state('home.evaluation-people', {
                    url: 'evaluation-people',
                    views: {
                        'content@': {
                            templateUrl: 'app/module/business/evaluation/people/people.view.html',
                            controller: 'EvaluationPeopleController',
                            controllerAs: 'evaluationPeople',
                            resolve: {
                                deps: lazyLoadevaluationPeople
                            }
                        }
                    },
                    data: {
                        pageTitle: '测评人员',
                        requiresLogin: false
                    }
                }
            );
    }

    lazyLoadevaluationPeople.$inject = ['$ocLazyLoad'];

    function lazyLoadevaluationPeople($ocLazyLoad) {
        return $ocLazyLoad.load({
            name: 'module.business',
            insertBefore: '#ng_load_plugins_before', // load the above css files before a LINK element with this ID. Dynamic CSS files must be loaded between core and theme css files
            files: [
                'app/module/business/evaluation/people/people.controller.js',
                'app/module/business/evaluation/people/create/controller.js',
                'app/module/business/evaluation/people/detail/controller.js'

            ]
        });
    }
})();